package com.example.demo.utils.jdkdongtaidaili;

public class Test {
    public static void main(String[] args) {
       /* User user = new PoxyUser(new AliUser());
        user.user();
        User user1 = new PoxyUser(new TengxunUser());
        user1.user();*/
        User user  = new UserHandler(new AliUser()).getProxy();
        Animal animal = new UserHandler(new Dog()).getProxy();
        animal.animal();
    }
}
